import request from '@/utils/request'

// 查询假日信息列表
export function listHolidayinformation(query) {
  return request({
    url: '/datalist/holidayinformation/list',
    method: 'get',
    params: query
  })
}

// 子表联查
export function Get_ID_HolidayMangement(data) {
  return request({
    url: '/datalist/holidayinformation/Get_ID_HolidayMangement',
    method: 'post',
    data: data
  })
}


// 查询假日信息详细
export function getHolidayinformation(id) {
  return request({
    url: '/datalist/holidayinformation/' + id,
    method: 'get'
  })
}

// 新增假日信息
export function addHolidayinformation(data) {
  return request({
    url: '/datalist/holidayinformation',
    method: 'post',
    data: data
  })
}

// 修改假日信息
export function updateHolidayinformation(data) {
  return request({
    url: '/datalist/holidayinformation',
    method: 'put',
    data: data
  })
}

// 删除假日信息
export function delHolidayinformation(id) {
  return request({
    url: '/datalist/holidayinformation/' + id,
    method: 'delete'
  })
}

